import res  from '@/http/https'

//表单新增的方法
const addFormInfo =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/Form/AddFormInfo",
        method:"post",
        data,
    })
}

//表单数据列表的方法
const getFormInfo =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/Form/PagingFormInfo",
        method:"get",
        params:data
    })
}

//表单逻辑删除的方法
const deleteFormInfo =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/Form/DelFormInfo",
        method:"delete",
        data,
    })
}

//表单修改的方法 
const updateFormInfo =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/Form/UpdateFormInfo",
        method:"put",
        data,
    })
}

//表单数据列表
const getFormList =async (typeId:any)=>{
    return res({
        url:"ProcessEgineAPI/Form/GetForm",
        method:"get",
        params:{
            TypeId:typeId
        }
    })
}

export {addFormInfo,getFormInfo,deleteFormInfo,updateFormInfo,getFormList}